package com.xiaomoaguai.service;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description :
 * @FileName: StartMain.java
 * @Author :WeiHui.Zhang
 * @Data : 2016年5月3日 下午2:49:51
 * @Version:V1.00
 */
public class StartMain {

	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "provider.xml" });
		context.start();
		HelloService helloService = (HelloService) context.getBean("helloService"); // 获取远程服务代理
		System.out.println(helloService.sayHello("nihao"));
		System.in.read(); // 按任意键退出
	}

}
